﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Details.aspx.cs"
    Inherits="ivvIncorporadora.Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true" />
    <h2>
        Dados da incorporadora</h2>
    <asp:ScriptManagerProxy runat="server" ID="ScriptManagerProxy1" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
                HeaderText="Lista de validação de erros" />
            <asp:DynamicValidator runat="server" ID="DetailsViewValidator" ControlToValidate="DetailsView1"
                Display="None" />
            <asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="DetailsDataSource"
                OnItemDeleted="DetailsView1_ItemDeleted" CssClass="detailstable" FieldHeaderStyle-CssClass="bold"
                DefaultMode="ReadOnly" AutoGenerateRows="False">
                <Fields>
                    <asp:DynamicField DataField="razaoSocialIncorporadora" HeaderText="Razão social " />
                    <asp:DynamicField DataField="nomeContato1Incorporadora" HeaderText="Nome do contato 1 " />
                    <asp:DynamicField DataField="telefoneContato1Incorporadora" HeaderText="Telefone 1 " />
                    <asp:DynamicField DataField="emailContato1Incorporadora" HeaderText="Email 1 " />
                    <asp:DynamicField DataField="nomeContato2Incorporadora" HeaderText="Nome do contato 2 " />
                    <asp:DynamicField DataField="telefoneContato2Incorporadora" HeaderText="Telefone 2 " />
                    <asp:DynamicField DataField="emailContato2Incorporadora" HeaderText="Email 2 " />
                    <asp:DynamicField DataField="nomeContato3Incorporadora" HeaderText="Nome do contato 3 " />
                    <asp:DynamicField DataField="telefoneContato3Incorporadora" HeaderText="Telefone 3 " />
                    <asp:DynamicField DataField="emailContato3Incorporadora" HeaderText="Email 3 " />
                    <asp:DynamicField DataField="dataCadastroIncorporadora" HeaderText="Data de cadastro da incorporadora " />
                    <asp:DynamicField DataField="ativaIncorporadora" HeaderText="Ativa? " />
                </Fields>
            </asp:DetailsView>
            <asp:LinqDataSource ID="DetailsDataSource" runat="server" EnableDelete="true">
                <WhereParameters>
                    <asp:DynamicQueryStringParameter />
                </WhereParameters>
            </asp:LinqDataSource>
            <br />
            <div class="bottomhyperlink">
                <asp:HyperLink ID="ListHyperLink" runat="server">Voltar a lista</asp:HyperLink>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
